package com.ruoyi.xiaoshouchuku.service;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

import com.ruoyi.shangpinxinxi.domain.Shangpinxinxi;
import com.ruoyi.xiaoshouchuku.domain.XiaoshouChuku;
import com.ruoyi.xiaoshouchuku.domain.saomaChuku;
import com.ruoyi.xiaoshouchuku.domain.saomaChuku2Qianduan;
import com.ruoyi.xiaoshouchuku.domain.saomaTest;
import org.springframework.stereotype.Component;

/**
 * 销售出库Service接口
 * 
 * @author ruoyi
 * @date 2023-05-15
 */
public interface IXiaoshouChukuService 
{
    /**
     * 查询销售出库
     * 
     * @param id 销售出库主键
     * @return 销售出库
     */
    public XiaoshouChuku selectXiaoshouChukuById(Long id);

    /**
     * 查询销售出库列表
     * 
     * @param xiaoshouChuku 销售出库
     * @return 销售出库集合
     */
    public List<XiaoshouChuku> selectXiaoshouChukuList(XiaoshouChuku xiaoshouChuku);

    /**
     * 新增销售出库
     * 
     * @param xiaoshouChuku 销售出库
     * @return 结果
     */
    public int insertXiaoshouChuku(XiaoshouChuku xiaoshouChuku);

    /**
     * 修改销售出库
     * 
     * @param xiaoshouChuku 销售出库
     * @return 结果
     */
    public int updateXiaoshouChuku(XiaoshouChuku xiaoshouChuku);

    /**
     * 批量删除销售出库
     * 
     * @param ids 需要删除的销售出库主键集合
     * @return 结果
     */
    public int deleteXiaoshouChukuByIds(String ids);

    /**
     * 删除销售出库信息
     * 
     * @param id 销售出库主键
     * @return 结果
     */
    public int deleteXiaoshouChukuById(Long id);

    String selectGouhuoDanhaoByLastOne();

    List<XiaoshouChuku> selectXiaoshouChukuListNoDo(String userName);

    String selectRole2User(String username);

    List<saomaChuku> selectSaomaChuKuList(saomaChuku saomaChuku);

    int selectTodo(String goodname,String chukudanhao,String fahuodanhao);

    boolean insertSaomaChuku(saomaChuku saomaChuku);

    int selectTodo2(String shangpinBianhao, String chukuDanhao, String fahuoDanhao);

    List<saomaTest> selectXiaoshouChukuByDanhao(String fahuoDanhao);

    String selectRole4User(String username);

    List<saomaChuku> selectSaomaChuKu4DanGedanhao(String danhao);

    int updateSaomaChuku(saomaChuku sc);

    saomaChuku selectXiaosaomaTest4danhaoAndshangpin(String fahuodanhao, String shangpinBianhao);

    saomaTest selectsaomaChuku2danhaoAndshangpin(String fahuodanhao, Shangpinxinxi shangpinBianhao);
}
